package com.company.观察者模式;

public class Manger implements Observer{
    @Override
    public void update(Object arg) {
        int priceVar = (Integer) arg;
        if (priceVar>-5&& priceVar<5){
            System.out.println("正常波动");
        }else{
            System.out.println("价格波动太大要人为干预");
        }
    }
}
